﻿//  Copyright (c) 2011 Ray Liang (http://www.dotnetage.com)
//  Licensed MIT: http://www.opensource.org/licenses/mit-license.php

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DNA.Mvc
{
    public interface IPrivateMessageRepository : IRepository<PrivateMessage>
    {
        IQueryable<PrivateMessage> GetReceives(string userName);

        IQueryable<PrivateMessage> GetReceives(string userName, out int total, int pageIndex = 0, int pageSize = 50);

        IQueryable<PrivateMessage> GetSent(string userName);

        IQueryable<PrivateMessage> GetSent(string userName, out int total, int pageIndex = 0, int pageSize = 50);
    }
}
